import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'
const FileManage = () => import('@/views/fileManage/index.vue')
const FileList = () => import('@/views/fileManage/rightContent/FileList.vue')
const routes: Array<RouteRecordRaw> = [
  {
    path: '/',
    redirect: '/FileManage'
  },
  {
    path: '/FileManage',
    name: 'FileManage',
    component: FileManage,
    redirect: '/FileList',
    children: [
      {
        path: '/FileList',
        component: FileList,
        meta: {
          title: '文件管理'
        }
      }
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
